package com.qing.apple.filter.demo02.comparator;

import com.qing.apple.filter.bean.Apple;

import java.util.Comparator;

public class AppleComparator implements Comparator<Apple> {

	@Override
	public int compare(Apple o1, Apple o2) {
		return o1.getWeight().compareTo(o2.getWeight());
	}
}
